
<div id="map">
	<span class='title'>分类列表</span>
</div>
<div style="color:red;margin-left:50px;">
	<?php 
if(yii::app()->user->hasFlash('ok')){
	echo yii::app()->user->getFlash('ok');
}


 ?>
</div>
<div id="content">
	<table id="table" class='table table-striped table-bordered'>
		<thead>
			<tr>
				<th width="5%"></th>
				<th width="15%">分类名称</th>
				<th width="30%">分类标题</th>
				<th width="10%">分类排序</th>
				<th width="10%">是否显示</th>
				<th >操作</th>
			</tr>
		</thead>
		<tbody>
		<?php 
		if(!empty($datas)){
			foreach ($datas as $key => $v) {
				# code...
			

		 ?>
			<tr class="level_<?php echo $v['level']?> pid_<?php echo $v['pid'] ?>" cid="<?php echo $v['cid'] ?>" pid="">
				<td><a class='btn btn-mini btn-info unfold' style="font-size:16px;" href="">+</a></td>
				<td><?php echo $v['html'].$v['cname'] ?></td>
				<td><?php echo $v['title'] ?></td>
				<td><?php echo $v['sort'] ?></td>
				<td>
					<?php 
					if($v['display']==1){
						echo '显示';
					}else{
						echo '隐藏';
					}

					 ?>
				</td>
				<td>
					<a class='btn btn-small' href="<?php echo $this->createUrl('category/addcate',array('cid'=>$v['cid'])) ?>">添加子类</a>
					<a class='btn btn-small' href="<?php echo $this->createUrl('category/edit',array('cid'=>$v['cid'])) ?>">编辑</a>
					<a class='btn btn-small' href="<?php echo $this->createUrl('category/del',array('cid'=>$v['cid'])) ?>">删除</a>
				</td>
			</tr>

			<?php 

		}}
			 ?>
		</tbody>
	</table>
</div>
</body>
</html>